'use strict';

const Controller = require('egg').Controller;

class SortPriceController extends Controller {
  async index() {
    
    const { ctx } = this;
    // console.log(ctx.query)
    var data = await ctx.service.goods.sortPrice(ctx.query);
    // console.log(data);
    ctx.body ={
      msg:"商品价格排序",
      code:200,
      res:data
    }
  }
}

module.exports = SortPriceController;
